@import "../../assets/styles/global.scss";

.container {
    height: 100%;
    background: url("../../assets/images/login-background.jpg") no-repeat center bottom / cover;
}

// 登录框
.signInBox {
    margin-top: calc(-320px / 2);
}
// 注册框
.registerBox {
    margin-top: calc(-500px / 2);
}

// 注册或登陆框
.loginBox {
    padding: 20px 40px 30px;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.205);
    position: fixed;
    left: 50%;
    top: 50%;
    margin-left: calc(-520px / 2);
    & > h1 {
        margin: 0 0 6px;
        text-align: center;
        font: normal 1.4rem sans-serif;
        color: #007395;
    }
    & > form {
        & > div {
            padding-top: 20px;
            & > label, & > input {
                display: inline-block;
                vertical-align: middle;
            }
            & > label {
                width: 5rem;
                color: $form_font_color;
                text-shadow: 0 1px 0 hsla(0, 0%, 24%, 0.3);
            }
            & > input {
                background-color: rgba(255, 255, 255, 0.8);
                width: 360px;
                &:focus {
                    background-color: rgba(255, 255, 255, 1);
                }
            }
            & > button {
                width: calc(360px + 5rem);
                height: 46px;
                background-color: $theme_color;
                border: none;
                color: #ffffff;
                &:hover {
                    background-color: lighten($theme_color, 15%);
                }
                &:active {
                    background-color: $theme_color;
                }
            }
        }
    }
}

// 切换登录或注册页面指引文本
.switchLogin {
    p {
        margin: 0.2rem 0;
        color: #8d8d8d;
        span {
            margin: 0 2px;
            color: $theme_color;
            cursor: pointer;
            &:hover {
                text-decoration: underline;
                color: lighten($theme_color, 15%);
            }
            &:active {
                color: $theme_color;
            }
        }
    }
}